#import <Foundation/Foundation.h>
#import "DVIGeometry.h"

//假设以黑板左上角做为坐标原点
//X轴从左往右
//Y轴从上往下
@interface View : NSObject

@property (nonatomic) DVIPoint center;//矩形的中心点的坐标
@property (nonatomic) DVIRect  bounds;//矩形的大小
@property (nonatomic) DVIRect  frame; //位置和大小

//自定义初始化方法
- (instancetype)initWithFrame:(DVIRect)frame;

+ (instancetype)view;
+ (instancetype)viewWithFrame:(DVIRect)frame;
@end
